<template>
  <div class="layout">
    <el-container>
      <el-header>
        {{ $store.state.userinfo.name }}
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu :default-active="$route.path" router>
            <el-menu-item index="/user_manage">
              <i class="el-icon-menu"></i>
              <span slot="title">用户管理</span>
            </el-menu-item>
            <el-menu-item index="/movie_manage">
              <i class="el-icon-document"></i>
              <span slot="title">电影管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view> </router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
